From: Florian Müllner Date: Sat, 5 Jul 2014 09:20:01 +0000 (+0200) Subject: extension-tool: Fix multi-monitor handling in example extension X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2358 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e865db57e0e213a808c22958736bc00056a72f5d;p=gnome-shell.git extension-tool: Fix multi-monitor handling in example extension --- diff --git a/src/gnome-shell-extension-tool.in b/src/gnome-shell-extension-tool.in index 988271f6d..e00d5cd0b 100644 --- a/src/gnome-shell-extension-tool.in +++ b/src/gnome-shell-extension-tool.in @@ -42,8 +42,8 @@ function _showHello() { let monitor = Main.layoutManager.primaryMonitor; - text.set_position(Math.floor(monitor.width / 2 - text.width / 2), - Math.floor(monitor.height / 2 - text.height / 2)); + text.set_position(monitor.x + Math.floor(monitor.width / 2 - text.width / 2), + monitor.y + Math.floor(monitor.height / 2 - text.height / 2)); Tweener.addTween(text, { opacity: 0,